<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>逻辑运算符</title>
</head>
<body>
    <button onclick="funA()">逻辑赋值</button>
    <button onclick="funB()">逻辑赋值</button>
    <button onclick="funC()">逻辑赋值</button>
    <button onclick="funD()">逻辑赋值</button>
    <button onclick="funE()">逻辑赋值</button>
    <button onclick="funF()">逻辑赋值</button>
    <button onclick="funG()">逻辑赋值</button>
</body>
<script>
    var a = 5
    function funA(){
        a += 5
        console.log(a)
    }
    function funB(){
        a -= 5
        console.log(a)
    }
    function funC(){
        a *= 5
        console.log(a)
    }
    function funD(){
        a /= 5
        console.log(a)
    }
    function funE(){
        a **= 2
        console.log(a)
    }
    function funF(){
        console.log(a != 5)
    }
    function funG(){
        var a = true
        a &&= false
        console.log(a)
    }

</script>
</html>